package com.open4cn.simulator.core.connector.serialport;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description
 * @Email yinxiaopeng@zj.tech
 * @date 2022-06-11 23:34
 */
public abstract class SerialPortInboundHandlerAdapter implements SerialPortInboundHandler {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    private SerialPortHandler serialPortHandler;

    @Override
    public void next(SerialPortHandler serialPortHandler) {
        this.serialPortHandler = serialPortHandler;
    }

    @Override
    public SerialPortHandler next() {
        return serialPortHandler;
    }
}
